package com.test.myestest.service;

import com.test.myestest.vo.DocumentTest;
import com.test.myestest.vo.ESSearchFileVo;
import com.test.myestest.vo.ESSearchVo;
import com.test.myestest.vo.FileTest;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

public interface ESService {
    Map<String, Object> search(ESSearchVo esSearchVo);

    String add(String indexName, DocumentTest documentTest);

    String delete(String indexName, String id);

    String addFile(MultipartFile multipartFile,String importFileUrl,String indexName, FileTest fileTest);

    Map<String, Object> searchFile(ESSearchFileVo esSearchFileVo);
}
